﻿namespace PartyInvites.Test.Chart3
{
    public class PasswordResetHelper
    {
        private IEmailSender _sender;
        public PasswordResetHelper(IEmailSender emailSender)
        {
            _sender = emailSender;
        }

        public void ResetPassword()
        {
            _sender.SendEmail();
        }
    }

    public interface IEmailSender
    {
        void SendEmail();
    }

    public class MyEmailSender : IEmailSender
    {
        public void SendEmail()
        {
            throw new System.NotImplementedException();
        }
    }
}